<template>
  <div class="page">
    <el-card>
      <el-row type="flex">
        <el-col :span="11">
          <div class="befor" v-if="colshow">
            <i class="el-icon-info"></i>
            <span>本月：社保在缴 公积金在缴 增员 减员 入职 离职</span>
          </div>
        </el-col>
        <el-col :span="13">
          <div class="after">
            <el-button
              type="primary"
              size="mini"
              @click="$router.push('/excil')"
              >批量导入</el-button
            >
            <el-button type="primary" @click="showdig" size="mini"
              >+ 新增员工</el-button
            >
          </div>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  props: ["colshow"],
  methods: {
    showdig() {
      this.$emit("opendig", true);
    },
  },
};
</script>

<style lang='scss'>
.page {
  .befor {
    background-color: rgba(230, 247, 255);
    padding: 10px;
    .el-icon-info {
      color: rgba(102, 177, 255);
      padding-right: 10px;
    }
  }
  .after {
    text-align: right;
  }
}
</style>